package com.example.scanner;

import java.util.Scanner;

public class ScannerDemo01 {
    public static void main(String[] args) {
        System.out.println("请输入你的名字：");
        Scanner scanner = new Scanner(System.in);
        String name = scanner.next();
        System.out.println("请输入你的年龄：");
        int age = scanner.nextInt();
        System.out.println("你的名字是："+name);
        System.out.println("你的年龄是："+age);
    }
}
